package com.gg.registration.hospital.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gg.registration.model.hosp.Hospital;
import com.gg.registration.vo.hosp.HospitalQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @author chenjunjia
 * @date 2022/4/9 0:58
 */
public interface HospitalService {

    /**
     * 上传医院接口
     */
    void save(Map<String, Object> paramMap);

    Hospital getByHoscode(String hoscode);

    //添加的
    String getHospName(String hoscode);

    //【改造前】feign那边拿不到对象
    Page<Hospital> getList(Integer currentPage,Integer limit, HospitalQueryVo hospitalQueryVo);
    //【改造后】改为路径变量传递
//    Page<Hospital> getList(Integer currentPage, Integer limit, String hostype, String districtCode);

    void updateStatus(String id,Integer status);

    Hospital getHospitalById(String id);

    List<Hospital> findByHosname(String hosname);

    /**
     * 获取医院详情和预约详情
     * @param hoscode
     */
    Map<String, Object> item(String hoscode);


}
